
package beans;

public class item {

    private int id;
    private String iname;
    private float iprice;
    private int istock;
    private String isdesc;
    private String iddesc;
    private int iqty;
    

    public int getIqty() {
        return iqty;
    }

    public void setIqty(int iqty) {
        this.iqty = iqty;
    }

   public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIname() {
        return iname;
    }

    public void setIname(String iname) {
        this.iname = iname;
    }

    public float getIprice() {
        return iprice;
    }

    public void setIprice(float iprice) {
        this.iprice = iprice;
    }

    public int getIstock() {
        return istock;
    }

    public void setIstock(int istock) {
        this.istock = istock;
    }

    

    public String getIsdesc() {
        return isdesc;
    }

    public void setIsdesc(String isdesc) {
        this.isdesc = isdesc;
    }

    public String getIddesc() {
        return iddesc;
    }

    public void setIddesc(String iddesc) {
        this.iddesc = iddesc;
    }


   public String verifQty() {
        String msg = "";
        if(this.iqty==0){
            msg += "please enter your quantity";
        }
        return msg;
    }

  
}